<script>
	function goBack(){
		if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)){ // IE
			if(history.length > 2){
				if("{$_GET['s']}" == "member" && "{$_GET['c']}" != "shezhi") {
					if("{$_GET['app']}"=="bug" || "{$_GET['app']}"=="wendas" || "{$_GET['app']}"=="fankui") {
						if("{$_GET['c']}"=="show") {
						    window.location.href = "/index.php?s={MOD_DIR}";
						}else{
							window.history.go(-1);
						}
					}else{
						if("{$_GET['app']}"=="bug" || "{$_GET['app']}"=="wendas" || "{$_GET['app']}"=="fankui") {
						    window.history.go(-1);
						}else{
							window.location.href = "/index.php?s=member";
						}
						
					}
				}else{
					if("{$_GET['c']}"=="show") {
					    window.location.href = "/index.php?s={MOD_DIR}";
					}else{
						window.history.go(-1);
					}
				}
			}else{
				window.location.href = "{SITE_URL}";
			}
		}else{ //非IE浏览器
			if (navigator.userAgent.indexOf('Firefox') >= 0 ||
				navigator.userAgent.indexOf('Opera') >= 0 ||
				navigator.userAgent.indexOf('Safari') >= 0 ||
				navigator.userAgent.indexOf('Chrome') >= 0 ||
				navigator.userAgent.indexOf('WebKit') >= 0){
	 
				if(history.length > 2){
					if("{$_GET['s']}" == "member" && "{$_GET['c']}" != "shezhi") {
						if("{$_GET['app']}"=="bug" || "{$_GET['app']}"=="wendas" || "{$_GET['app']}"=="fankui") {
							if("{$_GET['c']}"=="show") {
						        window.location.href = "/index.php?s={MOD_DIR}";
							}else{
								window.history.go(-1);
							}
						}else{
							if("{$_GET['app']}"=="bug" || "{$_GET['app']}"=="wendas" || "{$_GET['app']}"=="fankui") {
							    window.history.go(-1);
							}else{
								window.location.href = "/index.php?s=member";
							}
						}
					}else{
						if("{$_GET['c']}"=="show") {
						    window.location.href = "/index.php?s={MOD_DIR}";
						}else{
							window.history.go(-1);
						}
					}
				}else{
					window.location.href = "{SITE_URL}";
				}
			}else{ //未知的浏览器
				if(history.length > 2){
					if("{$_GET['s']}" == "member" && "{$_GET['c']}" != "shezhi") {
						if("{$_GET['app']}"=="bug" || "{$_GET['app']}"=="wendas" || "{$_GET['app']}"=="fankui") {
							if("{$_GET['c']}"=="show") {
							    window.location.href = "/index.php?s={MOD_DIR}";
							}else{
								window.history.go(-1);
							}
						}else{
							if("{$_GET['app']}"=="bug" || "{$_GET['app']}"=="wendas" || "{$_GET['app']}"=="fankui") {
							    window.history.go(-1);
							}else{
								window.location.href = "/index.php?s=member";
							}
						}
					}else{
						if("{$_GET['c']}"=="show") {
						    window.location.href = "/index.php?s={MOD_DIR}";
						}else{
							window.history.go(-1);
						}
					}
				}else{
					window.location.href = "{SITE_URL}";
				}
			}
		}
	}
</script>